<template>
    <tr>
        <td>{{lItem.type}}</td>
        <td>{{lItem.account}}</td>
        <td>
            <input type="text" v-model.lazy="tip">
        </td>
        <td>
            <span @click="del">删除</span>
        </td>
    </tr>
</template>
<script>
export default {
    props:['lItem'],
    data(){
        return {
            tip:this.lItem.tip
        }
    },
    methods:{
        del(){
            this.$emit('del',this.lItem.id);
        }
    },
    watch:{
        tip(){
            this.$emit('changeTip',this.tip,this.lItem.id)
        }
    }

}
</script>
